home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / technoboxB_multifrag.gsh < prev    next >
Text File  |  2000-08-22  |  2KB  |  99 lines

  1. // defines a box which has several stages of destructibility
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_BOX_MULTIFRAG_GSH
  8. #define INCLUDED_BOX_MULTIFRAG_GSH
  9.  
  10. #include "defaults.gsh"
  11.  
  12. ////////////////////////////////////////////////////////////////////////////////////
  13.  
  14. // second lot of frag bits
  15.  
  16. hierarchy Hcy_Fragbox_Frag_2
  17. {
  18.     file    "objects\Technobox frag 2.rif"
  19.     name    "technobox frag 2"
  20.     hotspot none
  21. }
  22.  
  23. role Rol_Fragbox_Frag_B : Rol_PlacedObject
  24. {
  25.     shape        Hcy_Fragbox_Frag_2
  26.     identifier    "fragbox_frag_2"
  27.     hit test ignore yes
  28.     frag control    yes
  29. }
  30.  
  31. // damaged box and first lot of frag bits
  32.  
  33. hierarchy Shp_Technobox_Damaged
  34. {
  35.        file "objects\Technobox half.rif"
  36.        name "Technobox half"
  37. }
  38.  
  39. frag data Frg_Fragbox_B    // this creates only frag bits
  40. {
  41.     role            Rol_Fragbox_Frag_B
  42.     scale            3
  43.     symmetric        no
  44. }
  45.  
  46. role Rol_Fragbox_B : Rol_PlacedObject
  47. {
  48.     shape            Shp_Technobox_Damaged
  49.     identifier        "technobox_damaged"
  50.     destructibility    Frg_Fragbox_B
  51.     armour            0
  52.     ai                blocker
  53. }
  54.  
  55. hierarchy Hcy_Fragbox_Frag_1
  56. {
  57.     file    "objects\Technobox frag 1.rif"
  58.     name    "technobox frag 1"
  59.     hotspot none
  60. }
  61.  
  62. role Rol_Fragbox_Frag_A : Rol_PlacedObject
  63. {
  64.     shape        Hcy_Fragbox_Frag_1
  65.     identifier    "fragbox_frag_1"
  66.     hit test ignore yes
  67.     frag control    yes
  68. }
  69.  
  70. // the intact box
  71.  
  72. hierarchy Hcy_Technobox
  73. {
  74.        file "objects\Technobox.rif"
  75.        name "Technobox"
  76. }
  77.  
  78. frag data Frg_Technobox    // this creates Rol_Fragbox_B and frag bits
  79. {
  80.     role            Rol_Fragbox_Frag_A
  81.     replace role    Rol_Fragbox_B
  82.     replace         yes                    // get rid of the old box
  83.     scale            3
  84.     symmetric        no
  85. }
  86.  
  87. role Rol_Technobox : Rol_PlacedObject
  88. {
  89.     shape            Hcy_Technobox
  90.     identifier        "technobox"
  91.     destructibility    Frg_Technobox
  92.     armour            0
  93.     ai            blocker
  94. }
  95.  
  96. ////////////////////////////////////////////////////////////////////////////////////
  97.  
  98. // end wrapper - for preventing multiple or recursive inclusions
  99. #endif // !INCLUDED_BOX_MULTIFRAG_GSH